import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import VueRouter from 'vue-router';
import * as echarts from 'echarts';

axios.defaults.baseURL='http://localhost:9999'
Vue.config.productionTip = false
Vue.prototype.$http=axios;
Vue.prototype.$echarts=echarts;
Vue.use(ElementUI);
Vue.use(VueRouter);

import HelloWorld from './components/HelloWorld.vue';
import VueTest from './components/VueTest.vue';
import memuTest1 from './components/menu1.vue';
import memuTest2 from './components/menu2.vue';

const router = new VueRouter({
  // 配置路由表
  routes:[
    {
      path:'/',
      component:HelloWorld,
    },
    {
      path:'/VueTest',
      component:VueTest,
    },
    {
      path:'/memuTest1',
      component:memuTest1,
    },
    {
      path:'/memuTest2',
      component:memuTest2,
    }
  ]
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
